
rm -rf .idea
rm -rf logs

rm -rf app
rm -rf sql
rm -rf panshi-all

git clone https://gitee.com/xiaobolinet/panshi-all.git panshi-all

mv panshi-all/app app
mv panshi-all/sql sql

rm -rf panshi-all
rm -rf app/eureka
rm -rf app/gateway

sed -i '/<module>gateway<\/module>/d' app/pom.xml
sed -i '/<module>eureka<\/module>/d' app/pom.xml

sed -i '/import org.springframework.cloud.client.discovery.EnableDiscoveryClient\;/d' app/web/src/main/java/web/WebApplication.java
sed -i '/\@EnableDiscoveryClient/d' app/web/src/main/java/web/WebApplication.java


sed -i '/\# 集群配置/d' app/web/src/main/resources/config/application.yml
sed -i '/cloud:/,/^$/d' app/web/src/main/resources/config/application.yml
sed -i '/eureka:/,/^$/d' app/web/src/main/resources/config/application.yml


sed -i '/<dependency>/,/<\/dependency>/ { /<groupId>com.alibaba.cloud<\/groupId>/,/<artifactId>spring-cloud-starter-alibaba-nacos-discovery<\/artifactId>/d }' app/web/pom.xml
sed -zi 's/<dependency>\s*<\/dependency>//g' app/web/pom.xml











